// project created on 9/20/2006 at 12:07 AM
using System;
using Banshee.Base;
using Gtk;

public static class PluginModuleEntry
{
   public static Type [] GetTypes()
   {
       return new Type [] {
           typeof(Banshee.Plugins.iTunesImporter.iTunesPlugin)
       };
   }
}

namespace Banshee.Plugins.iTunesImporter
{
	public class iTunesPlugin : Banshee.Plugins.Plugin
	{
		public override string DisplayName { get { return "iTunes Importer"; } }
        protected override string ConfigurationName { get { return "iTunesImporter"; } }
        
        public override string Description {
            get { return "Import information from an iTunes library such as playlists, play counts and ratings."; }
        }
        
        public override string [] Authors {
            get {
                return new string [] { "Scott Peterson" };
            }
        }

        protected override void PluginInitialize()
        {
        	ImportManager.Instance.ImportRequested += iTunesImporter.OnImportManagerImportRequested;
        	ImportManager.Instance.ImportFinished += iTunesImporter.OnImportManagerFinished;
        }
        
        protected override void PluginDispose()
        {
        	ImportManager.Instance.ImportRequested -= iTunesImporter.OnImportManagerImportRequested;
        	ImportManager.Instance.ImportFinished -= iTunesImporter.OnImportManagerFinished;
        }
	}
}